package com.shuan.modules.controller;

import com.shuan.modules.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RestController
public class UserController {

    @Autowired(required = false)
    private UserService userService;

    @GetMapping(value = "/user/find")
    public String findUser(@RequestParam("userId") String userId) {
        return userService.findUser(userId);
    }
}
